﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001387 RID: 4999
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeRogueAeonLevelRewardScRsp : IMessage<TakeRogueAeonLevelRewardScRsp>, IMessage, IEquatable<TakeRogueAeonLevelRewardScRsp>, IDeepCloneable<TakeRogueAeonLevelRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003F06 RID: 16134
		// (get) Token: 0x0600DFD2 RID: 57298 RVA: 0x00256887 File Offset: 0x00254A87
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeRogueAeonLevelRewardScRsp> Parser
		{
			get
			{
				return TakeRogueAeonLevelRewardScRsp._parser;
			}
		}

		// Token: 0x17003F07 RID: 16135
		// (get) Token: 0x0600DFD3 RID: 57299 RVA: 0x0025688E File Offset: 0x00254A8E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeRogueAeonLevelRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003F08 RID: 16136
		// (get) Token: 0x0600DFD4 RID: 57300 RVA: 0x002568A0 File Offset: 0x00254AA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeRogueAeonLevelRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600DFD5 RID: 57301 RVA: 0x002568A7 File Offset: 0x00254AA7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeRogueAeonLevelRewardScRsp()
		{
		}

		// Token: 0x0600DFD6 RID: 57302 RVA: 0x002568B0 File Offset: 0x00254AB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeRogueAeonLevelRewardScRsp(TakeRogueAeonLevelRewardScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.aeonId_ = other.aeonId_;
			this.level_ = other.level_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DFD7 RID: 57303 RVA: 0x00256914 File Offset: 0x00254B14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeRogueAeonLevelRewardScRsp Clone()
		{
			return new TakeRogueAeonLevelRewardScRsp(this);
		}

		// Token: 0x17003F09 RID: 16137
		// (get) Token: 0x0600DFD8 RID: 57304 RVA: 0x0025691C File Offset: 0x00254B1C
		// (set) Token: 0x0600DFD9 RID: 57305 RVA: 0x00256924 File Offset: 0x00254B24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003F0A RID: 16138
		// (get) Token: 0x0600DFDA RID: 57306 RVA: 0x0025692D File Offset: 0x00254B2D
		// (set) Token: 0x0600DFDB RID: 57307 RVA: 0x00256935 File Offset: 0x00254B35
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AeonId
		{
			get
			{
				return this.aeonId_;
			}
			set
			{
				this.aeonId_ = value;
			}
		}

		// Token: 0x17003F0B RID: 16139
		// (get) Token: 0x0600DFDC RID: 57308 RVA: 0x0025693E File Offset: 0x00254B3E
		// (set) Token: 0x0600DFDD RID: 57309 RVA: 0x00256946 File Offset: 0x00254B46
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17003F0C RID: 16140
		// (get) Token: 0x0600DFDE RID: 57310 RVA: 0x0025694F File Offset: 0x00254B4F
		// (set) Token: 0x0600DFDF RID: 57311 RVA: 0x00256957 File Offset: 0x00254B57
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x0600DFE0 RID: 57312 RVA: 0x00256960 File Offset: 0x00254B60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeRogueAeonLevelRewardScRsp);
		}

		// Token: 0x0600DFE1 RID: 57313 RVA: 0x00256970 File Offset: 0x00254B70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeRogueAeonLevelRewardScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.AeonId == other.AeonId && this.Level == other.Level && object.Equals(this.Reward, other.Reward) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DFE2 RID: 57314 RVA: 0x002569E0 File Offset: 0x00254BE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.AeonId != 0U)
			{
				num ^= this.AeonId.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DFE3 RID: 57315 RVA: 0x00256A67 File Offset: 0x00254C67
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DFE4 RID: 57316 RVA: 0x00256A6F File Offset: 0x00254C6F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DFE5 RID: 57317 RVA: 0x00256A78 File Offset: 0x00254C78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.reward_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.Reward);
			}
			if (this.AeonId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.AeonId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Retcode);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Level);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DFE6 RID: 57318 RVA: 0x00256B0C File Offset: 0x00254D0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.AeonId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AeonId);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DFE7 RID: 57319 RVA: 0x00256B94 File Offset: 0x00254D94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeRogueAeonLevelRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.AeonId != 0U)
			{
				this.AeonId = other.AeonId;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DFE8 RID: 57320 RVA: 0x00256C24 File Offset: 0x00254E24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DFE9 RID: 57321 RVA: 0x00256C30 File Offset: 0x00254E30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 40U)
				{
					if (num == 34U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
					if (num == 40U)
					{
						this.AeonId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 48U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 72U)
					{
						this.Level = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040058A6 RID: 22694
		private static readonly MessageParser<TakeRogueAeonLevelRewardScRsp> _parser = new MessageParser<TakeRogueAeonLevelRewardScRsp>(() => new TakeRogueAeonLevelRewardScRsp());

		// Token: 0x040058A7 RID: 22695
		private UnknownFieldSet _unknownFields;

		// Token: 0x040058A8 RID: 22696
		public const int RetcodeFieldNumber = 6;

		// Token: 0x040058A9 RID: 22697
		private uint retcode_;

		// Token: 0x040058AA RID: 22698
		public const int AeonIdFieldNumber = 5;

		// Token: 0x040058AB RID: 22699
		private uint aeonId_;

		// Token: 0x040058AC RID: 22700
		public const int LevelFieldNumber = 9;

		// Token: 0x040058AD RID: 22701
		private uint level_;

		// Token: 0x040058AE RID: 22702
		public const int RewardFieldNumber = 4;

		// Token: 0x040058AF RID: 22703
		private ItemList reward_;
	}
}
